package com.shop.service.impl;

import com.shop.entity.ShopProduct;
import com.shop.mapper.ShopProductMapper;
import com.shop.service.ShopProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ShopProductServiceImpl implements ShopProductService {

    @Autowired
    ShopProductMapper shopProductMapper;


    @Override
    public List<ShopProduct> GetShopProductList() {
        return shopProductMapper.selectAll();
    }

    @Override
    public ShopProduct GetShopProductById(int ShopProId) {
        return shopProductMapper.selectByPrimaryKey(ShopProId);
    }


}
